<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>修改密码</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">	
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin/css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
</head>  
<body>

<form class="form editform" id="passwordForm" name="passwordForm" onsubmit="return validation();" action="password.do" method="post">
<div class="head"></div>
<div class="body">
	<div class="content">
	
      	  <div class="prompt">
			温馨提示：请输入新旧密码以及确认密码
      	  </div>

		  <dl>
			<dt>输入旧密码：</dt>
			<dd>
				<input class="input" name="old" type="password" id="old" value="" maxlength="16" size="16"/>
				<b>*</b>
				<em style="display:inline;width:auto;">请输入您的旧密码</em>
			</dd>
		  </dl>
		  <div style="clear:both;"></div>
		  <dl>
			<dt>输入新密码：</dt>
			<dd>
				<input class="input" name="now" type="password" id="now" value="" maxlength="16" size="16"/>
				<b>*</b>
				<em style="width:auto;display:inline;">8-16个字符,只能是数字或字母</em>
			</dd>
		  </dl>
		  <div style="clear:both;"></div>
		  <dl>
			<dt>确认新密码：</dt>
			<dd>
				<input class="input" name="agin" type="password" id="agin" value="" maxlength="16" size="16"/>
				<b>*</b>
				<em style="width:auto;display:inline;">输入您的确认密码</em>
			</dd>
		  </dl>
		  
		  <div class="line"></div>
		
		  <center>
			  <button class="button" type="submit">提交</button>		
			  <button class="button" type="reset">重置</button>
		  </center>
		  
	  </div>	
</div>
<div class="foot"></div>
</form>
	
<script>
function validation(){
	if($("#old").val()==""){
		$.toast("对不起，请输入旧密码！");
		return false;
	}
	if($("#now").val()==""){
		$.toast("对不起，请输入新密码！");
		return false;		
	}
	if($("#agin").val()!=$("#now").val()){
		$.toast("对不起，新密码与确认密码不一致！");
		return false;
	}
	$.loading(true);
	$.getAjax("password.do",$("#passwordForm").params(),function(protocol){
		$.loading(false);
		if(protocol.message){
			top.$.alert(protocol.message);
		}
		if(protocol.success){
			$.closeModalDialog();
		}
	});
	return false;
}
</script>
	
</body>
</html>